package com.yang.designmode.ActionMode.strategy;
// 具体策略类
public class PayPalPayment implements PaymentStrategy {
    @Override
    public void pay(int amount) {
        System.out.println("Paid " + amount + " via PayPal.");
    }
}